CC=gcc
main:main.o matrix.o kalman_filter.o imm.o
	$(CC) -o main main.o matrix.o kalman_filter.o imm.o -lm
main.o: main.c matrix.h kalman_filter.h
	$(CC) -c main.c
matrix.o: matrix.c matrix.h
	$(CC) -c matrix.c
kalman_filter.o: kalman_filter.c kalman_filter.h matrix.h
	$(CC) -c kalman_filter.c
imm.o: imm.c imm.h matrix.h kalman_filter.h
	$(CC) -c imm.c

clean:
	del *.o *.exe	 